package com.skivingcloud.admin.feignclient;

import com.skivingcloud.admin.sys.entity.SysLog;
import com.skivingcloud.feign.conf.FeignClientBasicAuthRequestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author hushouquan
 */
@FeignClient(name="admin-server/sysLog", configuration = FeignClientBasicAuthRequestConfig.class)
public interface FBasicAuthRequestSysLogService{
    /**
     * 添加。
     *
     * @param sysLog 日志对象
     * @return {@code true} 添加成功，{@code false} 添加失败
     */
    @PostMapping("/save")
    boolean save(@RequestBody SysLog sysLog);
    
    /**
     * 根据主键获取详细信息。
     *
     * @param id 主键
     * @return 详情
     */
    @GetMapping("/getInfo/{id}")
    SysLog getInfo(@PathVariable(value = "id") String id);
}
